import axios from "axios";

let request = axios.create({
    baseURL: '/user',
    timeout: 5000,
})

request.interceptors.request.use(config => {
    config.headers
    return config
}, error => {
    console.log('error', error)
})

request.interceptors.response.use(res => {
    return res.data
}, error => {
    console.log('error', error)
})

export default request
